package com.hjqjl.module_choice.ui;

import android.content.Context;
import android.content.Intent;
import android.widget.SeekBar;

import com.hjqjl.module_choice.databinding.ChoiceActivitySeekbarBinding;
import com.hjqjl.whapplib.base.BaseActivity;

public class SeeBarkActivity extends BaseActivity<ChoiceActivitySeekbarBinding> {
    public static void start(Context context) {
        Intent starter = new Intent(context, SeeBarkActivity.class);
        context.startActivity(starter);
    }

    @Override
    public void initListener() {
        pVBinding.choiceSbSeekBarH.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
            @Override
            public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
                pVBinding.choiceTvSeekBarHProgress.setText("滑块滑动进度" + progress);
            }

            @Override
            public void onStartTrackingTouch(SeekBar seekBar) {

            }

            @Override
            public void onStopTrackingTouch(SeekBar seekBar) {

            }
        });
        pVBinding.choiceSbSeekBarHCustom.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
            @Override
            public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
                pVBinding.choiceTvSeekBarHCustomProgress.setText("滑块滑动进度" + progress);
            }

            @Override
            public void onStartTrackingTouch(SeekBar seekBar) {

            }

            @Override
            public void onStopTrackingTouch(SeekBar seekBar) {

            }
        });
        pVBinding.choiceSbSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
            @Override
            public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
                pVBinding.choiceTvSeekBarProgress.setText("滑块滑动进度" + progress);
            }

            @Override
            public void onStartTrackingTouch(SeekBar seekBar) {

            }

            @Override
            public void onStopTrackingTouch(SeekBar seekBar) {

            }
        });
    }
}
